﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Puddy
{
    public class GooglePlaceDetailRequest
    {
        
        const string baseURL = "https://maps.googleapis.com/maps/api/place/details/json?reference={0}&sensor=true&key={1}";
        

        static GooglePlaceDetailRequest()
        {
            ApiKey = "AIzaSyAo3PYOTkQVXbn_Xz-v0OMuDH89YAhjSd8";
        }

        /// <summary>
        /// Your application's API key. This key identifies your application for purposes of quota management and so that Places added from your application are made immediately available to your app.
        /// </summary>
        public static string ApiKey { get; set; }

        public string Reference { get; set; }


        public override string ToString()
        {
            string url = String.Format(baseURL, Reference, ApiKey);
            return url;
        }
    }
}
